#import "Rectangle.h"
#import "XYPoint.h"

int main (int argc, char *argv[])
{
    NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];

    Rectangle *myRect = [[Rectangle alloc] init];
    XYPoint   *myPoint = [[XYPoint alloc] init];

    [myPoint setX: 100 andY: 200];

    [myRect setWidth: 5 andHeight: 8];
    myRect.origin = myPoint;

    NSLog (@"Wsprzdne pocztku: (%i, %i)", myRect.origin.x, myRect.origin.y);

    [myPoint setX: 50 andY: 50];
    NSLog (@"Wsprzdne pocztku:  (%i, %i)", myRect.origin.x, myRect.origin.y);
    [myRect release];
    [myPoint release];

    [pool drain];
    return 0;
}